package com.sky.mapper.user;

import com.github.pagehelper.Page;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserHistoryOrdersMapper {
    /**
     * 历史订单
     * @param param
     * @return
     */
    Page<OrderVO> historyOrders(OrdersPageQueryDTO param);



    /**
     * 根据id查询订单
     * @param
     * @return
     */
    OrderVO getById(Long orderId);



    /**
     * 修改订单状态为取消
     * @param
     */
    void updateForCancel(Integer status);
}
